/**
 * Created by ste on 2018/1/9.
 */
import React, { Component } from 'react';
import {
  Text,
  TouchableOpacity,
} from 'react-native';
export default class Detail extends Component {
  static navigationOptions = ({ navigation }) => ({
    title: '详情',
    headerTintColor: 'green', // 导航栏文字颜色
    headerStyle: {
      backgroundColor: 'white', // 导航条背景颜色
    },
    headerBackTitle: '返回', // 返回按钮的值
    headerLeft: (<TouchableOpacity onPress={() => {
      navigation.goBack();
    }} >
      <Text style={{ backgroundColor: 'white', fontSize: 18, right: 0, color: 'red' }} >返回</Text>
    </TouchableOpacity>),
  })
  render() {
    return (
      <Text>
        Press Cmd+R to reload,{'\n'}
         Cmd+D or shake for dev menu
      </Text>
    );
  }
}
